package com.stormragetech.arthas.dispatcher;

/**
 * description: ThreadLocal object
 *
 * @author: Xue Bin
 * @version: 1.0.0-SNAPSHOT
 */
public class DataCache {

    private static final ThreadLocal<Object> localData = new ThreadLocal<>();

    static void setData(Object obj) {
        localData.set(obj);
    }

    public static Object getData() {
        return localData.get();
    }


}
